package com.sjy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer  {
	 @Override
	    public void addViewControllers(ViewControllerRegistry registry) {
	        registry.addViewController("/login1").setViewName("login");
	        registry.addViewController("/index1").setViewName("index1");
	        registry.addViewController("/index2").setViewName("index2");
	        registry.addViewController("/index3").setViewName("index3");
	        registry.addViewController("/myerror").setViewName("myerror");
	        
	    } 
}
